home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Multimedia
/
Resource Library: Multimedia.iso
/
hypercrd
/
xcmds
/
dvlprstc.hqx
/
Developer Stack 1.3r
/
card_19780.txt
< prev
next >
Wrap
Text File
|
1991-04-30
|
1KB
|
66 lines
-- card: 19780 from stack: in.3r
-- bmap block id: 0
-- flags: 0000
-- background id: 2202
-- name: noFieldDelete
----- HyperTalk script -----
on deleteField
beep 3
answer "You can't do that"
domenu copy field
domenu paste field
end deleteField
-- part 3 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=253 top=182 right=246 bottom=392
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Can't delete me!
----- HyperTalk script -----
on newfield
put the short name of the target into card field the short name of the target
end newfield
-- part contents for background part 10
----- text -----
10
-- part contents for background part 3
----- text -----
noFieldDelete
-- part contents for background part 2
----- text -----
--NOTE: Handlers are included in the Function section for convenience.
--
--If you ever create a stack where you want the uninitiated user prevented from
--accidentally deleting an important field, put the following handler in the background
--or stack script.
--
--It is installed in this card. Try to delete the field below...
--
--by Steve Drazga, AnalytX
--
on deleteField
beep 3
answer "You can't do that"
domenu copy field
domenu paste field
end deleteField
-- part contents for card part 3
----- text -----
Can't delete me!
-- part contents for background part 19
----- text -----
Functions